package createpattern.prototype;

/**
 * @author seer
 * @date 2018/2/7 10:54
 */
public abstract class Shape implements Cloneable {
    private String name;
    protected String type;

    abstract void draw();

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Shape{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
